#!/usr/bin/env python
#-*- coding: utf-8 -*-


GAME_BOXES = {
    1 : {
        'name' : 'Dice game',
        'type' : 1,
        'objects' : [
            Dice()
        ]
    }
}

class Dice(object):
    """ Класс стандартного кубика """

    def __init__(self, round=6, count=1):
        self.round = round
        self.count = count
        self.result = None

    def roll(self):
        self.result = random.randint(1, self.round)*self.count

    def get_log(self):
        if not self.result:
            self.roll()
        return "D%d(%d): %d" % (self.round, self.count, self.result)

def main():
    print GAME_BOXES

if __name__ == '__main__':
    main()
